<template>
  <Result
    status="success"
    title="接口编辑器页面已在新窗口打开!"
    sub-title="在菜单中将编辑器页面链接设置成外链，并不生效，所以只能曲线救国。如果新窗口被浏览器拦截，请点击下面按钮"
  >
    <template #extra>
      <a-button key="console" type="primary" @click="open">打开编辑器</a-button>
    </template>
  </Result>
</template>
<script lang="ts" setup>
  import { Result } from 'ant-design-vue'
  const open = () => {
    window.open('/#/magic-api', '_blank')
  }
  open();
</script>
